<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>语义标签</title>
    <style>
    * {
        margin: 0;
        padding: 0;
    }

    header {
        height: 120px;
        width: 100%;
        background-color: #f00;
    }

    nav {
        height: 50px;
        width: 100%;
        background-color: #0f0;
    }

    main {
        height: 560px;
        width: 100%;
        background-color: #ccc;
    }

    main > article {
        width: 80%;
        height: 100%;
        background-color: #00f;
        float: left;
    }

    main > aside {
        width: 20%;
        height: 100%;
        background-color: pink;
        float: left;
    }

    footer {
        width: 100%;
        height: 80px;
        background-color: skyblue;
    }
    </style>
</head>
<body>
    <!-- html5 语义化标签 -->
    <!-- 
        语义标签兼容性：
        IE9 支持部分
     -->
    <header>头部</header>
    <nav>导航</nav>
    <main>
        <article>正文</article>
        <aside>侧边栏</aside>
    </main>
    <footer>底部</footer>

    <!-- 传统方式 -->
    <!-- <div class="header"></div>
    <div class="nav"></div>
    <div class="main">
        <div class="left"></div>
        <div class="right"></div>
    </div>
    <div class="foot"></div> -->
</body>
</html>